package com.ylbh.modules.cancellation.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ylbh.common.pojo.cancellation.dto.CancellationDTO;
import com.ylbh.modules.cancellation.entity.ShoppingUserCancellation;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 用户注销信息表
 *
 * @author czx
 * @date 2019-11-16 18:33:59
 */
@Mapper
@Repository
public interface ShoppingUserCancellationMapper extends BaseMapper<ShoppingUserCancellation> {

    /**
     * 用户注销列表
     * @param dto
     * @param page
     * @return
     */
    List<ShoppingUserCancellation> selectCancellationList(@Param(value = "dto") CancellationDTO dto, Page<Object> page);

    /**
     * 修改注销表中的状态
     * @param dto
     */
    void updateStatusById(CancellationDTO dto);
}
